<?php

session_start();
require_once('./config.php');

require_once($CONFIG->datadir.'/lib/mainlib.php');
require_once($CONFIG->datadir.'/lib/outputlib.php');

getSessionTab();

getSessionLang();
include_once($CONFIG->datadir.'/lang/'.$_SESSION["lang"].'.php');

showHead();

echo '<script language="javascript" src="'.$CONFIG->webdir.'/lib/js/async.js"></script>';

// TABS
showTabLinks($CONFIG->webdir.'/');

echo '<br /><br /><br />';

?>


<!-- FORM -->
<table valign="center" align="center" width="40%">
  <tr><td align="center">
          <a href="<?php echo $CONFIG->webdir;?>"><img border="0" src="<?php echo $CONFIG->webdir;?>/styles/<?php echo $CONFIG->style_name;?>/img/logo.jpeg" alt="Blooglebot" /></a><br /><br />
          <form action="<?php echo $CONFIG->webdir;?>/search/" name="form">
          <input name="q" size="55" title="<?php echo $string['blooglesearch'];?>" value="" /><br />
          <input name="send" type="submit" value="<?php echo $string['blooglesearch'];?>" />
          <input name="silly" type="submit" value="<?php echo $string['imsilly'];?>" /><br />
          <?php echo $string['searchin'];?>&nbsp;
          <input name="meta" type="radio" value="" <?php if (empty($_SESSION['meta']) OR $_SESSION['meta'] == '') { echo 'checked=yes';}?> />&nbsp;<?php echo $string['web'];?>&nbsp;
          <input name="meta" type="radio" value="<?php echo $_SESSION['lang'];?>" <?php if ($_SESSION['meta'] == $_SESSION['lang']) { echo 'checked=yes';}?>/>&nbsp;<?php echo $string['pagesin'].' '.$string[$_SESSION['lang']];?>&nbsp;
          </form>
  </td></tr>
</table>


<!-- LANGS -->
<?php
showLangsLinks($CONFIG->webdir.'/');
?>


<!-- KEYWORDS -->
<table align="center" valign="center" width="50%"><tr>
    <td align="center">
        <br /><br />
        <div id="keywordscloud">
            <a href="#" onclick="showkeywords();"><?php echo $string["showkeywords"];?></a>
        </div>
        <br /><br />
    </td>
</tr></table>


<!-- FOOTER -->
<?php
showFoot();
?>
